<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:panel header="Header Text" toggleable="true" closable="true" >

                <f:facet name="header">
                    <h:outputText value="Header Text" />
                </f:facet>

                <f:facet name="actions">
                    
                    <h:commandLink id="ajaxbutton" styleClass="ui-panel-titlebar-icon ui-corner-all ui-state-default">
                        <h:outputText styleClass="ui-icon ui-icon-help" value="test link" />
                    </h:commandLink>

                </f:facet>

                <f:facet name="footer">
                    <h:outputText value="Footer Text" />
                </f:facet>

                <h:outputText value="Rest of the content..." />

            </p:panel>
        </h:form>
    </h:body>
</html>